<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>字符串类型</title>
    <script>
        //字符串定义
        var a = '嗡嗡嗡哇哇哇哇哇哇哇'

        a = "前追加" + a;

        //\n换行符号
        a = a + '\n';

        a = a + '后追加';

        console.log(a);
    </script>
</head>

<body>

</body>

</html>